package com.zjxt.background.controller;

import com.zjxt.background.entity.MachineGroup;
import com.zjxt.background.mapper.MachineGroupMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.Instant;
import java.util.Date;
import java.util.List;

@Controller
@RequestMapping("/diagnosisHistory")
public class DiagnosisHistoryController {

    @Autowired
    MachineGroupMapper machineGroupMapper;

//    @RequestMapping("")
//    public String index(Model model,
//                        @RequestParam(value = "pageNo", required = false, defaultValue = "1") Integer pageNo,
//                        @RequestParam(value = "pageSize", required = false, defaultValue = "20") Integer pageSize,
//                        @RequestParam(value = "startTime",required = false,defaultValue = "1970-01-01 00:00:00") Date startTime,
//                        @RequestParam(value = "startTime",required = false,defaultValue = "2200-01-01 00:00:00") Date endTime,
//                        @RequestParam(value = "maybe", required = false, defaultValue = "1") Integer maybe,
//                        @RequestParam(value = "must", required = false, defaultValue = "20") Integer must
//
//                        ) {
//        List<MachineGroup> machineGroupList = machineGroupMapper.selectAll();
//
//
//    }


}
